﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Wages
{
    public class Payment
    {
        public double calculatePayment(int hours, double rate)
        {
            if (hours < 0)
                throw new ArgumentException("Negative hours are not valid");

            if (hours > 48)
                throw new ArgumentException("No more than 48 hours may be worked in one week!");

            if (rate < 5.8)
                throw new ArgumentException("Mim Wage");
           
            return hours * rate;
            
        }
    }
}
